﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo06.ViewModels
{
    class MainPageViewModel : Common.BindableBase
    {
        string _Text = default(string);
        public string Text { get { return _Text; } set { SetProperty(ref _Text, value); } }

        string _Result = default(string);
        public string Result { get { return _Result; } set { SetProperty(ref _Result, value); } }

        public Common.DelegateCommand Update
        {
            get
            {
                return new Common.DelegateCommand(() =>
                {
                    this.Result = string.Format("Thank you {0}", this.Text);
                });
            }
        }
    }
}
